package com.lb.activity;

import com.lb.activity.util.SnowflakeIdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@tk.mybatis.spring.annotation.MapperScan("com.lb.activity.mapper")
public class DemoApplication {


    @Bean
    public SnowflakeIdWorker idWorker(){
        return new SnowflakeIdWorker(0,0);
    }

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }
}
